﻿using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Quickly.Identity;

public class AppRole : IdentityRole<string>, IAuditCreated, IAuditLastModified
{
    public AppRole()
    {
        Id = Guid.NewGuid().ToString();
        CreatedTime = DateTimeOffset.UtcNow;
        LastModifiedTime = DateTimeOffset.UtcNow;
    }

    public AppRole(string roleName) : this()
    {
        Name = roleName;
    }

    public DateTimeOffset CreatedTime { get; set; } = default!;

    public DateTimeOffset LastModifiedTime { get; set; } = default!;

    public bool Deleted { get; set; } = default!;
}
